﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    LogOn
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        LogOn</h2>
    <%: Html.ValidationSummary("Login failed. Please correct the errors.") %>
    <div id="login-form">
        <% using (Html.BeginForm())
           { %>
        <div>
            <p>
            <label for="username">Username:</label>
            <%: Html.TextBox("username") %>
            <%: Html.ValidationMessage("username","*") %>
            </p>
            <p>
            <label for="password">Password:</label>
            <%: Html.Password("password") %>
            <%: Html.ValidationMessage("password","*") %>
            </p>
            <p>
            <input type="submit" value="Log On" />
            </p>
            <p>
            Please enter your username and password.<br />Or
            <%: Html.ActionLink("Register", "Register") %>
            </p>
        </div>
        <% } %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
